#ifndef MISCDATAWIDGET_H
#define MISCDATAWIDGET_H

//#include"ui_miscdata.h"
#include"ui_miscdata.h"
#include<QValidator>

#include "serialize/miscdata.h"

namespace Ui{
class MiscdataWidget;
}

class MiscdataWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MiscdataWidget(QWidget* p=0);
    ~MiscdataWidget();

    inline void setFilePath(QString s){filePath = s;}
    inline void setWorkPath(QString s){workPath = s;}
    MiscData getMiscdataFromUI();
    void displayMiscdataToUI(MiscData& s);
    MiscData readMiscdataFromFile();
    bool saveMiscdataToFile();

private:
    Ui::MiscdataWidget* ui;
    QString filePath;
    QString workPath;
    void setInputMask();
};

#endif // EXPWIDGET_H
